

package com.hazelcast.query.impl;

import com.hazelcast.config.IndexConfig;
import com.hazelcast.instance.impl.Node;
import com.hazelcast.internal.monitor.impl.PerIndexStats;
import com.hazelcast.internal.serialization.InternalSerializationService;
import com.hazelcast.query.impl.getters.Extractors;

/**
 * Provides on-heap indexes.
 */
public class DefaultIndexProvider implements IndexProvider {

    @SuppressWarnings("checkstyle:ParameterNumber")
    @Override
    public InternalIndex createIndex(Node node, IndexConfig config, Extractors extractors, InternalSerializationService ss, IndexCopyBehavior copyBehavior, PerIndexStats stats, int partitionCount, int partitionId, String mapName) {
        return new IndexImpl(node, config, ss, extractors, copyBehavior, stats, partitionCount, mapName);
    }
}
